package com.zhuhao.utils.beanutil;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * 用于测试操作bean的属性
 *
 * @author halk
 * @date 2025/10/16 14:54
 **/
@Data
@Accessors(chain = true)
public class UserEntity {
    private String name;
    private Integer age;
    private List<String> phoneList;
    private Map<String, String> headsetMap;
    private Car car;
    private List<Car> carList;
    private Map<String, String> carMap;

    /**
     * 汽车
     */
    @Data
    @Accessors(chain = true)
    static class Car {
        private String name;
        private String type;
        private List<String> colorList;
        List<Goods> goodsList;

    }

    /**
     * 车载物品
     */
    @Data
    @Accessors(chain = true)
    static class Goods {
        private String name;
        private String type;
    }

}
